cmake_minimum_required(VERSION 2.8)
project(opencvHanzi)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(Opencv REQUIRED)
find_package(Qt5 COMPONENTS Core Gui REQUIRED)
include_directories(${OPENCV_INCLUDE_DIR})
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} ${OPENCV_LIBRARY} Qt5::Core Qt5::Gui)